<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
<meta name="decorator" content="moduleView" />
<script src="${staticPath}/lib/accounting/0.3.2/accounting.min.js"
	type="text/javascript"></script>
			<script type="text/javascript" src="${staticPath}/js/list.js"></script>
	
<script type="text/javascript">
/* 	function getUrl(url, iframeId) {
		var frame = $("#" + iframeId);
		if (!frame.attr("src")) {
			frame.attr("src", url);
		}
	}
	function printme() {
		document.body.innerHTML = document.getElementById('home').innerHTML;
		window.print();
	}
 */
	$(document).ready(function() {
		
	});
 
    function  printShopDetail(href){
    	window.open(href,'_blank');
    }
</script>
</head>
<body>
	<div class="Report_f">
		<div class="Report_f_1">
			<div class="Report_f_title_1">供应商门店专柜明细</div>
		<form:form name="listForm" modelAttribute="statementPospaySaleSupplier"
		method="post" class="form-inline" role="form">
		<div class="o-l-search-builder f_1">
		    <div class="f_2">
				<div class="f_2">
					<div class="col-sm-8 f_6">
						<form:input id="barCode" path="barCode" class="f_5" 
							placeholder="商品条码"/>
					</div>
					<button type="submit"  class="btn btn-warning btn_1">查&nbsp;询</button>
					<button  class="btn btn-warning btn_1" type="button" 
					onclick="printShopDetail('${contextPath}/biz/statement/pospaySaleSupplier/printShopDetail?shopNo=${statementPospaySaleSupplier.shopNo}&barCode=${statementPospaySaleSupplier.barCode}&supplierNo=${statementPospaySaleSupplier.supplierNo}&saleDate=<fmt:formatDate value="${statementPospaySaleSupplier.saleDate}" pattern="yyyy-MM-dd"/>')">打印</button>
				</div>
			</div>
		</div>
			<div class="tab-content Report_f_title_3">
				<div class="Report_f_title_5">
					<div class="tab-content Report_f_title_3">
						<div class="tab-pane active" id="label_1">
							<table
								class="table table-striped table-hover o-l-table table-bordered"
								id="table1">
								<thead class="t_1">
									<tr>
										<th>门店</th>
										<th>商品条码</th>
										<th>商品名称</th>
										<th>楼层</th>
										<th>销售金额</th>
										<th>销售日期</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach items="${bizStatementPospaySaleSupplierList}"
										var="pospaySaleSupplier">
									<tr data-herf="${contextPath}/biz/statement/pospaySaleSupplier/viewDetail?shopNo=${pospaySaleSupplier.shopNo}&barCode=${pospaySaleSupplier.barCode}&saleDate=<fmt:formatDate value="${pospaySaleSupplier.saleDate}" pattern="yyyy-MM-dd"/>" data-target="_self">
											<td>${pospaySaleSupplier.shopName}</td>
											<td>${pospaySaleSupplier.barCode}</td>
											<td>${pospaySaleSupplier.goodsName}</td>
											<td>${pospaySaleSupplier.floorName}</td>
											<td>${pospaySaleSupplier.saleAmount}</td>
											<td><fmt:formatDate
													value="${pospaySaleSupplier.saleDate}" pattern="yyyy-MM-dd" /></td>
									</tr>
									</c:forEach>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
			</form:form>
		</div>
	</div>
</body>
</html>